package com.netease.pris.provider;

import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.MatrixCursor;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
import com.netease.a.a.e;
import com.netease.g.b;
import java.io.File;

public class CustomContentProvider extends ContentProvider
{
  static final String a = "custom_authority";
  static final String b = "log_file";
  static final String c = "bitmap";
  public static final Uri d = Uri.parse("content://custom_authority/log_file");
  public static final Uri e = Uri.parse("content://custom_authority/bitmap");
  static UriMatcher f;
  static final int g = 0;
  static final int h = 1;
  static final String i = "CustomContentProvider";
  private static final String[] j;

  static
  {
    String[] arrayOfString = new String[2];
    arrayOfString[0] = "_display_name";
    arrayOfString[1] = "_size";
    j = arrayOfString;
    f = new UriMatcher(-1);
    f.addURI("custom_authority", "log_file/*", 0);
    f.addURI("custom_authority", "bitmap/*", 1);
  }

  public int delete(Uri paramUri, String paramString, String[] paramArrayOfString)
  {
    return 0;
  }

  public String getType(Uri paramUri)
  {
    return null;
  }

  public Uri insert(Uri paramUri, ContentValues paramContentValues)
  {
    return null;
  }

  public boolean onCreate()
  {
    return false;
  }

  public ParcelFileDescriptor openFile(Uri paramUri, String paramString)
  {
    ParcelFileDescriptor localParcelFileDescriptor = null;
    switch (f.match(paramUri))
    {
    default:
      localParcelFileDescriptor = super.openFile(paramUri, paramString);
    case 1:
    case 0:
    }
    while (true)
    {
      return localParcelFileDescriptor;
      String str3 = paramUri.getLastPathSegment();
      File localFile2 = new File(e.f(), str3);
      if (!localFile2.exists())
        continue;
      localParcelFileDescriptor = ParcelFileDescriptor.open(localFile2, 268435456);
      continue;
      String str1 = b.a();
      String str2 = paramUri.getLastPathSegment();
      File localFile1 = new File(str1 + str2);
      if (!localFile1.exists())
        continue;
      localParcelFileDescriptor = ParcelFileDescriptor.open(localFile1, 268435456);
    }
  }

  public Cursor query(Uri paramUri, String[] paramArrayOfString1, String paramString1, String[] paramArrayOfString2, String paramString2)
  {
    MatrixCursor localMatrixCursor;
    switch (f.match(paramUri))
    {
    default:
      localMatrixCursor = null;
    case 1:
    case 0:
    }
    while (true)
    {
      return localMatrixCursor;
      String str3 = paramUri.getLastPathSegment();
      File localFile2 = new File(e.f(), str3);
      if (!localFile2.exists())
        break;
      String[] arrayOfString1 = new String[2];
      arrayOfString1[0] = "_data";
      arrayOfString1[1] = "mime_type";
      localMatrixCursor = new MatrixCursor(arrayOfString1);
      String str4 = Uri.fromFile(localFile2).toString();
      String[] arrayOfString2 = new String[2];
      arrayOfString2[0] = str4;
      arrayOfString2[1] = "image/png";
      localMatrixCursor.addRow(arrayOfString2);
      continue;
      String str1 = b.a();
      String str2 = paramUri.getLastPathSegment();
      File localFile1 = new File(str1 + str2);
      if (!localFile1.exists())
        break;
      localMatrixCursor = new MatrixCursor(j);
      Object[] arrayOfObject = new Object[2];
      arrayOfObject[0] = localFile1.getName();
      arrayOfObject[1] = Long.valueOf(localFile1.length());
      localMatrixCursor.addRow(arrayOfObject);
    }
  }

  public int update(Uri paramUri, ContentValues paramContentValues, String paramString, String[] paramArrayOfString)
  {
    return 0;
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.provider.CustomContentProvider
 * JD-Core Version:    0.6.0
 */